summaryrefslogtreecommitdiff
path: root/tnslc/]
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-08-07 04:09:14 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-08-07 04:09:14 -0400
commit85daa32c72485272093804329851a56ca2ef9307 (patch)
tree1f3353fc61b1bf4a40e4e2144e8244a924ae1291 /tnslc/]
parent248fe38d3e2d932001a950b554c731f1698727f9 (diff)
[tnslc] Fix indexing post-op, segfault when printing c formatted strings in tokens
Diffstat (limited to 'tnslc/]')
-rw-r--r--tnslc/]28
1 files changed, 28 insertions, 0 deletions
diff --git a/tnslc/] b/tnslc/]
new file mode 100644
index 0000000..df49511
--- /dev/null
+++ b/tnslc/]
@@ -0,0 +1,28 @@
+# should not be included
+
+~uint lmao
+
+~{2}user c
+
+struct user {
+ ~int abcd,
+ ~Geko hij
+}
+
+struct Geko {
+ int i
+}
+
+/; module mod
+ int i = 0
+ /; whatev (~uint8 a) [uint8]
+ # return a{0}
+ ;/
+;/
+
+/; main [int]
+ # ~uint8 a = "asdf\0"
+ #whatev(a)
+ #whatev("asdf\0")
+ #return 0
+;/